<?php echo $html->docType('xhtml-strict'); ?>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
	<head>
		<title><?php echo $title_for_layout; ?></title>
		<?php echo $html->charset('UTF-8') ?>
		<?php echo $pageHeader; ?>
		<link rel="icon" href="<?php echo $this->webroot.$this->themePath.'favicon.ico'; ?>" type="image/x-icon" />
		<link rel="shortcut icon" href="<?php echo $this->webroot.$this->themePath.'favicon.ico'; ?>" type="image/x-icon" />
		<?php //echo $html->css('cake.generic'); ?>
		<?php echo $html->css('cake.x6tm'); ?>
		<?php echo $html->css('page'); ?>
		<?php echo $html->css('form'); ?>
		
		<!--[if lt IE 7.]>
			<script defer type="text/javascript" src="/js/fix/pngfix.js"></script>
		<![endif]-->
		
		<?php if(isset($javascript)): ?>
			<?php echo $javascript->link('scriptaculous/prototype'); ?>
			<?php echo $javascript->link('tiny_mce/tiny_mce'); ?>
			<?php echo $javascript->link('scriptaculous/scriptaculous.js?load=effects,dragdrop'); ?>
			<?php echo $javascript->link('scriptaculous/controls'); ?>
		<?php endif; ?>
	</head>
	<body>
		<div id="page">
			<div id="header">
				<h1><?php echo $html->link($mainTitle, '/'); ?></h1>
				<h2><?php echo $subTitle; ?></h2>
			</div>
			
			<div id="sidebar">
				<?php echo $this->renderElement('sidebar'); ?>
			</div>
			
			<div id="content">
				
				<?php if($session->check('Message.flash'))
					{
						$session->flash();
					} ?>

				<?php echo $content_for_layout;	?>
			</div>
				
			<hr class="content" />
				
			<div id="footer">
				<?php echo $html->link($html->image('cake.power.png', array('alt' => __('cakephp.org', true))), 'http://cakephp.org', array(), false, false); ?> 
				<?php echo $html->link($html->image('w3c_xhtml10.png', array('alt' => __('valid xhtml 1.0', true))), 'http://www.w3.org/html', array(), false, false); ?> 
				<?php echo $html->link($html->image('w3c_css.png', array('alt' => __('valid css', true))), 'http://www.w3.org/Style/CSS', array(), false, false); ?> 
				<?php echo $html->link($html->image('http://tinymce.sourceforge.net/buttons/tinymce_button.png', array('alt' => __('Powered by TinyMCE', true))), 'http://tinymce.moxiecode.com?id=powered_by_tinymce_mini', array(), false, false); ?> 
			</div>
			
		</div>
		<?php if(isset($javascript)) : ?>
			<div id="ajax" style="display : none;">&nbsp;</div>
		<?php endif; ?>
		<?php echo $cakeDebug ?>
	</body>
</html>
